package org.wlgzs.shop.bean;

import javax.validation.constraints.NotNull;

public class PersonProblemAll {


    /**
     * id
     */
    private Integer id;

    /**
     * 用户id
     */
    @NotNull
    private Integer userId;

    /**
     * 密保问题id
     */
    @NotNull
    private Integer problemId;

    /**
     * 密保答案
     */
    @NotNull
    private String answer;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProblemId() {
        return problemId;
    }

    public void setProblemId(Integer problemId) {
        this.problemId = problemId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    @Override
    public String toString() {
        return "PersonProblemAll{" +
                "id=" + id +
                ", userId=" + userId +
                ", problemId=" + problemId +
                ", answer='" + answer + '\'' +
                '}';
    }
}